package cn.tedu.lucky.draw.user.controller;

import cn.tedu.lucky.draw.user.protocol.po.UserLog;
import cn.tedu.lucky.draw.user.service.IUserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;

//@RestController
//@CrossOrigin
public class UserLogController {

//    @Autowired
    private IUserLogService userLogService;

//    @GetMapping("/draw/user-log/findAll")
    public Flux<UserLog> findAll(){
        return userLogService.findAll();
    }
}
